package com.chuangjiangx.member.basic.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author cj-ch
 * @date 2018/5/18 下午4:09
 */
@Controller
public class TestController {

    @RequestMapping("/test1")
    public ModelAndView test1(){
        System.out.println("%%%%%%%%%%%%%%%%%");
        return new ModelAndView("redirect:app/index.html");
    }
    @RequestMapping("/test2")
    public ModelAndView test2(){
        System.out.println("%%%%%%%%%%%%%%%%%");
        return new ModelAndView("redirect:app/index.html#/login");
    }
}
